/// officeCode : "121"
/// officeName : "服务部"
/// tenantName : 1000
/// parentId : 7618
/// branchId : 6627
/// rootId : 7618
/// leaderId : null
/// id : 9024
/// createdBy : "5"
/// createdDate : "2022-04-03 18:30:38"
/// updatedBy : null
/// updatedDate : null

class OfficeInfoData {
  OfficeInfoData({
      this.officeCode, 
      this.officeName, 
      this.tenantName, 
      this.parentId, 
      this.branchId, 
      this.rootId, 
      this.leaderId, 
      this.id, 
      this.createdBy, 
      this.createdDate, 
      this.updatedBy, 
      this.updatedDate,});

  OfficeInfoData.fromJson(dynamic json) {
    officeCode = json['officeCode'];
    officeName = json['officeName'];
    tenantName = json['tenantName'];
    parentId = json['parentId'];
    branchId = json['branchId'];
    rootId = json['rootId'];
    leaderId = json['leaderId'];
    id = json['id'];
    createdBy = json['createdBy'];
    createdDate = json['createdDate'];
    updatedBy = json['updatedBy'];
    updatedDate = json['updatedDate'];
  }
  String? officeCode;
  String? officeName;
  num? tenantName;
  num? parentId;
  num? branchId;
  num? rootId;
  dynamic leaderId;
  num? id;
  String? createdBy;
  String? createdDate;
  dynamic updatedBy;
  dynamic updatedDate;
OfficeInfoData copyWith({  String? officeCode,
  String? officeName,
  num? tenantName,
  num? parentId,
  num? branchId,
  num? rootId,
  dynamic leaderId,
  num? id,
  String? createdBy,
  String? createdDate,
  dynamic updatedBy,
  dynamic updatedDate,
}) => OfficeInfoData(  officeCode: officeCode ?? this.officeCode,
  officeName: officeName ?? this.officeName,
  tenantName: tenantName ?? this.tenantName,
  parentId: parentId ?? this.parentId,
  branchId: branchId ?? this.branchId,
  rootId: rootId ?? this.rootId,
  leaderId: leaderId ?? this.leaderId,
  id: id ?? this.id,
  createdBy: createdBy ?? this.createdBy,
  createdDate: createdDate ?? this.createdDate,
  updatedBy: updatedBy ?? this.updatedBy,
  updatedDate: updatedDate ?? this.updatedDate,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['officeCode'] = officeCode;
    map['officeName'] = officeName;
    map['tenantName'] = tenantName;
    map['parentId'] = parentId;
    map['branchId'] = branchId;
    map['rootId'] = rootId;
    map['leaderId'] = leaderId;
    map['id'] = id;
    map['createdBy'] = createdBy;
    map['createdDate'] = createdDate;
    map['updatedBy'] = updatedBy;
    map['updatedDate'] = updatedDate;
    return map;
  }

}